package com.naughty.userlogin02.dao;

import com.naughty.userlogin02.bean.Seehomework;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface SeehomeworkDao {
    public List<Seehomework> getAllSeehomeworkT2(@Param("tname") String tname, @Param("tpwd") String tpwd, @Param("pageStart") int pageStart, @Param("pageSize") int pageSize);
    public int getSeehomeworkCounts2(@Param("tname") String tname);

    //对于老师
    //未提交
    //getAllSeehomework1,getSeehomework1Counts
    public List<Seehomework> getAllSeehomeworkT(@Param("tname") String tname, @Param("tpwd") String tpwd, @Param("pageStart") int pageStart, @Param("pageSize") int pageSize);
    public int getSeehomeworkCounts(@Param("tname") String tname,@Param("tpwd") String tpwd);

    //已批改
    public List<Seehomework> getAllSeehomeworkS(@Param("tname") String tname, @Param("tpwd") String tpwd, @Param("pageStart") int pageStart, @Param("pageSize") int pageSize);
    public int getSeehomeworkCountsS(@Param("tname") String tname,@Param("tpwd") String tpwd);
    //等待批改

    public List<Seehomework> getAllSeehomeworkD(@Param("tname") String tname, @Param("tpwd") String tpwd, @Param("pageStart") int pageStart, @Param("pageSize") int pageSize);
    public int getSeehomeworkCountsD(@Param("tname") String tname,@Param("tpwd") String tpwd);

    //对于学生
    public List<Seehomework> getAllSeehomeworkStu(@Param("sname") String sname, @Param("spwd") String spwd, @Param("pageStart") int pageStart, @Param("pageSize") int pageSize);
    public int getSeehomeworkCountsStu(@Param("sname") String sname,@Param("spwd") String spwd);



}


